﻿@{
    ViewBag.Title = "数据权限";
    Layout = "~/Views/Shared/_Form.cshtml";
}
@Html.AppendCssFile("/Areas/LR_AuthorizeModule/Views/DataAuthorize/Form.css")
<div class="lr-form-wrap" id="form">
    <div class="col-xs-12 lr-form-item">
        <div class="lr-form-item-title">名称<font face="宋体">*</font></div>
        <input id="F_Name" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
    </div>
    <div class="col-xs-12 lr-form-item">
        <div class="lr-form-item-title">过滤条件<font face="宋体">*</font></div>
        <div id="querylist" style="min-height: 6px;"></div>
        <a class="lr-query-addbtn" id="lr_query_add">添加更多条件</a>
    </div>
    <div class="col-xs-12 lr-form-item">
        <div class="lr-form-item-title">公式</div>
        <input id="F_Formula" type="text" placeholder="请输入公式,默认为 1 and 2 and 3 这种且方式" class="form-control" />
        <div id="lr-info" class="info">
            <i class="fa fa-info-circle"></i>
        </div>
    </div>
</div>
<div id="lr-message" class="info-message">
    <p>请按如下规则编辑条件组合</p>
    <p class="ok">(1 and 2) or (3 and 4) <i class="fa fa-check"></i></p>
    <p>1.有and和or必须加括号</p>
    <p class="error">1 and 2 or 3 and 4 <i class="fa fa-close"></i></p>
    <p>2.一个括号里不能同时出现and和or</p>
    <p class="error">(1 and 2 or 3 )and 4 <i class="fa fa-close"></i></p>
    <p>3.不允许出现不存在的编号</p>
    <p class="error">1 and 2 and 3 and 4 and 5 <i class="fa fa-close"></i></p>
    <p>4.括号都是成对出现的</p>
    <p class="error">(1 and 2 and 3 and 4 <i class="fa fa-close"></i></p>
</div>
@Html.AppendJsFile("/Areas/LR_AuthorizeModule/Views/DataAuthorize/Form.js")
